<template>
  <div class="front new-detail">
    <div class="header-box">
      <Header></Header>
    </div>
    <div class="new-container">
      <!-- <div class="mianbao">
        <span class="btn hover" @click="$router.push('/front-home')">首页</span>
        <span>></span>
        <span class="btn hover" @click="$router.push('/front-news')">资讯中心</span>
        <span>></span>
        <span class="btn">详情</span>
      </div>-->
      <div class="main">
        <div class="introduce doing">
          <div class="remark" v-html="detail.remark"></div>
        </div>
      </div>
    </div>

    <div class="footer">
      <Footer></Footer>
    </div>
  </div>
</template>

<script>
import { getNewDetail, getNewData } from "@/api/front-home.js";
import Footer from "@/views/front/components/Footer";
import Header from "@/views/front/components/Header";
export default {
  data() {
    return {
      detail: {},

      newsList: [],
    };
  },
  components: {
    Footer,
    Header,
  },
  created() {
    let id = this.$route.query.id;
    console.log(this.$route);
    this.getNewDetail(id);
  },
  methods: {
    getNewDetail(id) {
      getNewDetail({ id: id }).then((res) => {
        this.detail = res;
      });
    },
  },
};
</script>
<style >
.hover:hover {
  color: #965f29;
}
</style>
<style lang="scss" scoped>
.new-detail {
  .new-container {
    background-color: #f6f6f6;
    overflow: hidden;
    padding: 30px;
    .mianbao {
      height: 60px;
      line-height: 60px;
      font-size: 16px;
      font-family: Microsoft YaHei;
      font-weight: 300;
      color: #000000;
    }
    .main {
      width: 1200px;
      margin: 0 auto;
      line-height: 26px;
      .introduce {
        background-color: #fff;
        padding: 36px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        .left {
          width: 656px;
          box-sizing: border-box;
          margin-right: 38px;
          h2 {
            font-size: 26px;
            font-family: Microsoft YaHei;
            font-weight: 400;
            color: #000000;
            margin-bottom: 16px;
          }

          p {
            line-height: 30px;
            font-size: 16px;
            font-family: Microsoft YaHei;
            font-weight: 300;
            color: #000000;
          }
        }
        .right {
          width: 501px;
          height: 316px;
          > img {
            width: 100%;
            height: 100%;
          }
        }
      }
    }
  }
}
</style>